<?php /* Smarty version 2.6.18, created on 2016-12-06 23:35:49
         compiled from disease/day.details.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action=" " method="get">	
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">因病缺课日报表</p>
                </div>
                   <div class="box-body">
                       <div class="col-sm-2 form-group">
                              <label for="inputPassword3" class="col-sm-6 control-label" style="padding:0; font-weight:500;">
                                   年级：
                              </label>
                              <div class="input-group col-md-6 col-xs-12">
                                   <select class="form-control" style="padding:0;" name="grade_id">
								   <?php $_from = $this->_tpl_vars['grade_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                          <option value="<?php echo $this->_tpl_vars['value']['grade_id']; ?>
"<?php if ($this->_tpl_vars['value']['grade_id'] == $this->_tpl_vars['grade_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</option>
                                   <?php endforeach; endif; unset($_from); ?>
                                    </select>
                              </div> 
                       </div>
                       <div class="col-sm-4 form-group">
                              <label for="inputPassword3" class="col-sm-2 control-label text-right" style="padding:0; font-weight:500;">
                                   日期：
                              </label>
                              <div class="input-group col-md-7 col-xs-12" style="float:left; margin-right:6px;">
                                   <input type="text" class="form-control" id="daytime" name="start_time" value="<?php echo $this->_tpl_vars['start_time']; ?>
">
                                   <div class="input-group-addon">
                                        <i class="fa fa-calendar"></i>
                                   </div>
                              </div> 
							  <input type="hidden" name="a" value="disease.daydetails">
                              <button type="submit" class="btn btn-primary">确 定</button>
                       </div>
                       <div style="clear:both;"></div>
                      <h4 class=" text-center">学校年级学生因病缺课情况登记表</h4>
                     <!-- <p style="float:right;">时间：<?php echo $this->_tpl_vars['time']; ?>
</p>-->
                      <table class="table table-bordered"  id="mytable">
                                    <tr>
                                        <td rowspan="2">班级</td>
                                        <td rowspan="2">因病缺勤人姓名</td>
                                        <td colspan="2" align="center">性别</td>
                                        <td rowspan="2">缺课天数</td>
                                        <td colspan="7" align="center">因病缺课主要症状</td>
                                        <td colspan="2" align="center">是否就诊</td> 
                                    </tr>
                                    <tr>
                                        <td>男</td>
                                        <td>女</td>
										<?php $_from = $this->_tpl_vars['disease_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                        <td><?php echo $this->_tpl_vars['value']['disease_name']; ?>
</td>
                                        <?php endforeach; endif; unset($_from); ?>
                                        <td>其他</td>
                                        <td>是</td>
                                        <td>否</td>
                                    </tr>
									<?php $_from = $this->_tpl_vars['lack_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
                                        <td><?php echo $this->_tpl_vars['value']['class_name']; ?>
</td>
                                        <td><?php echo $this->_tpl_vars['value']['student_name']; ?>
</td>
										<?php if ($this->_tpl_vars['value']['student_sex'] == 1): ?>
                                        <td><span class="glyphicon glyphicon-ok"> </span></td>
                                        <td> </td>
										<?php else: ?>
										<td> </td>
										<td><span class="glyphicon glyphicon-ok"> </span></td>
                                        <?php endif; ?>
										<?php if ($this->_tpl_vars['value']['lack_while'] == 1): ?><td>0.5</td>
										<?php else: ?>
                                        <td>1</td>
										<?php endif; ?>
										<?php if ($this->_tpl_vars['value']['disease_id'] == 1): ?>
                                        <td><span class="glyphicon glyphicon-ok"> </span> </td>
										<td></td><td></td><td></td><td></td><td></td>
										<?php elseif ($this->_tpl_vars['value']['disease_id'] == 2): ?>
										<td></td>
                                        <td><span class="glyphicon glyphicon-ok"> </span> </td>
										<td></td><td></td><td></td><td></td>
										<?php elseif ($this->_tpl_vars['value']['disease_id'] == 3): ?>
										<td></td><td></td>
                                        <td><span class="glyphicon glyphicon-ok"> </span> </td>
										<td></td><td></td><td></td>
										<?php elseif ($this->_tpl_vars['value']['disease_id'] == 4): ?>
										<td></td><td></td><td></td>
                                        <td><span class="glyphicon glyphicon-ok"> </span> </td>
										<td></td><td></td>
										<?php elseif ($this->_tpl_vars['value']['disease_id'] == 5): ?>
										<td></td><td></td><td></td><td></td>
                                        <td><span class="glyphicon glyphicon-ok"> </span> </td>
										<td></td>
										<?php elseif ($this->_tpl_vars['value']['disease_id'] == 6): ?>
										<td></td><td></td><td></td><td></td><td></td>
										<td><span class="glyphicon glyphicon-ok"> </span> </td>
										<?php else: ?>
										<?php endif; ?>
                                        <td><?php echo $this->_tpl_vars['value']['lack_rests']; ?>
</td>
										<?php if ($this->_tpl_vars['value']['lack_doctor'] == 1): ?>
										
                                        <td><span class="glyphicon glyphicon-ok"> </span> </td>
										<td> </td>
										<?php else: ?>
                                        <td> </td>
										<td><span class="glyphicon glyphicon-ok"> </span> </td>
										<?php endif; ?>
                                    </tr>
									<?php endforeach; endif; unset($_from); ?>
                        </table>
                        <div class="form-group">
                           <p>备注：<?php echo $this->_tpl_vars['explain_data']['explain_content']; ?>
</p>
                        </div>
				   </div><!--box-body -->
                   <div class="box-footer">
			   <?php echo $this->_tpl_vars['page']; ?>

                   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<script>
  $(function() {
    $( "#daytime" ).datepicker({
      changeMonth: true,
	  changeYear: true,
    });
  });
  </script>